//
//  ESBaseTableViewCell.m
//  EasyStyle
//
//  Created by FK on 15/12/28.
//  Copyright © 2015年 FK. All rights reserved.
//

#import "ESXibBaseView.h"

@implementation ESXibBaseView

- (void)awakeFromNib {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

+ (id)loadViewFromSameXibName
{
    return [self loadViewFromXibNamed:NSStringFromClass(self)];
}

+ (id)loadViewFromXibNamed:(NSString*)xibName
{
    NSArray *array = [[NSBundle mainBundle] loadNibNamed:xibName owner:self options:nil];
    if (array && [array count]) {
        return array[0];
    }else {
        return nil;
    }
}


@end
